﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchProgram.ascx.vb"
    Inherits="WebForm_ManageProgram_SearchProgram" %>
<%@ Register Src="~/WebForm/CommonControl/UploadFileControl.ascx" TagName="UploadFileControl"
    TagPrefix="uc2" %>
<table>
    <tr>
        <td align="left">
            <asp:Label ID="lblProgramGroup" runat="server" meta:resourcekey="lblProgramGroup"></asp:Label>
            <asp:DropDownList ID="ddlProgramGroup" runat="server" AutoPostBack="false">
            </asp:DropDownList>
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
    <tr>
        <td>
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" SkinID="pager" runat="server" HorizontalAlign="center" DataKeyNames="ProgramID"
    AllowHoverSelect="False" meta:resourcekey="gv" AllowSorting="true" MySortExpression="p.ProgramName">
    <Columns>
        <asp:BoundField DataField="ParentProgramName" meta:resourcekey="bfParentProgramName" />
        <asp:BoundField DataField="ProgramName" meta:resourcekey="bfProgramName" SortExpression="p.ProgramName" />
        <%--<asp:BoundField DataField="Url" meta:resourcekey="bfUrl" SortExpression="p.Url" />--%>
        <%--<asp:BoundField DataField="Description" meta:resourcekey="bfDescription" />--%>
        <asp:TemplateField meta:resourcekey="bfDescription">
            <itemtemplate>
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="4" Text='<%# Bind("Description") %>'></asp:TextBox>
            </itemtemplate>
        </asp:TemplateField>
        
        <asp:TemplateField meta:resourcekey="bfVisible">
            <itemtemplate>
                <asp:DropDownList ID="ddlVisible" runat="server" SelectedValue='<%#Bind("Visible") %>'>
                    <asp:ListItem Value="Y">是</asp:ListItem>
                    <asp:ListItem Value="N">否</asp:ListItem>
                </asp:DropDownList>
            </itemtemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknSave" CommandName="Update" runat="server" meta:resourcekey="lknSave"></asp:LinkButton>
            </itemtemplate>
        </asp:TemplateField>
        <%--        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknEdit" CommandName="Edit" runat="server" meta:resourcekey="lknEdit"></asp:LinkButton>
            </itemtemplate>
        </asp:TemplateField>--%>
        <%--        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton ID="lknDelete" CommandName="Delete" runat="server" meta:resourcekey="lknDelete"></asp:LinkButton>
                            <ajaxToolkit:ConfirmButtonExtender ID="cbDelete" runat="server" TargetControlID="lknDelete"
                                meta:resourcekey="cbDelete">
                            </ajaxToolkit:ConfirmButtonExtender>   
            </itemtemplate>
        </asp:TemplateField>
--%>
        <asp:TemplateField meta:resourcekey="bfHelp">
            <itemtemplate>
                <asp:LinkButton ID="lknUploadHelp" runat="server" meta:resourcekey="lknUploadHelp" CommandName="lknUploadHelp"></asp:LinkButton>
                <asp:LinkButton ID="lknDownloadHelp" runat="server" meta:resourcekey="lknDownloadHelp"></asp:LinkButton>
            </itemtemplate>
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
<uc2:UploadFileControl ID="UploadFileControl1" runat="server" strClass="ProgramDocument"
    isEdit="True" AllowMultipleUploads="false" />
